
package com.tebiecloud.mpweixin.client.constants;
/**
 * @author MJ
 *
 */
public enum ResultEnum implements BaseResult{

	USER_NOT_ACCESS(3002001, "用户没有授权"),
    PHONE_CODE_NOT_NULL(3002002, "验证码不能为空")
    ;
   

    private int code;

    private String message;

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public static Enum<ResultEnum> getValue(int code) {
		for (ResultEnum ele : values()) {
			if(ele.getCode()==code) return ele;
		}
		return null;
    }

}
